package com.cheers.dao;

import com.cheers.model.User;

public interface UserDao extends BaseDao {

	/**
	 * 获取用户
	 * @param username
	 * @param password
	 * @return
	 * @throws Exception
	 */
	public User getUserByUsernamePassword(String username, String password) throws Exception;
	
	/**
	 * 用户名是否被占用
	 * @param username
	 * @return
	 * @throws Exception
	 */
	public boolean hasUserByUsername(String username) throws Exception;
	
}
